//题目列表。
Ext.define("ES.view.items.ItemsList",{
    extend:"Ext.grid.Panel",
    alias:"widget.itemsTabList",
    closable:true,
     title:"题目管理",
     store:"ItemsStore",
     selType:"checkboxmodel",
     multiSelect:true,
     frame:true,
     layout:{
        type:"fit",
        align:"stretch"
      },
      sortableColumns:false,
      viewConfig:{
          forceFit:true,
          columnLines:true,
          stripRows:true
      },
      tbar:{
            xtype:"toolbar",
            height:36,
            items:["所属科目：",{
                    xtype:"textfield",
                    width:168
            }," 章节名称:",{
                    xtype:"textfield",
                    width:168
            }," 题目内容:",{
                    xtype:"textfield",
                    width:268
            },"",{
                    xtype:"button",
                    action:"btnQuery",
                    iconCls:'search-trigger-icon',
                    text:"检索",
                    tooltip:"检索数据"
            },"->",{
                    xtype:"button",
                    action:"btnAdd",
                    iconCls:"add-icon",
                    text:"新增",
                    tooltip:"新增数据"
            },"-",{
                    xtype:"button",
                    action:"btnDelete",
                    iconCls:"delete-icon",
                    text:"删除",
                    tooltip:"删除数据"
            }]
      },
      bbar:[{
            xtype:"pagingtoolbar",
            store:"ItemsStore",
            displayInfo:true
    }],
    columns:[{
        header:"序号",
        width:32,
        align:"right",
        xtype:"rownumberer"
    },{
        text:"科目名称",
        width:198,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"catalogName"
    },{
        text:"所属章节",
        width:128,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"sectionName"
    },{
        text:"题目内容",
        width:168,
        align:"left",
        menuDisabled:true,
        sortable:false,
        flex:1,
        dataIndex:"content"
    },{
        text:"类型",
        width:68,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"type"
    },{
        text:"难度",
        width:48,
        align:"left",
        menuDisabled:true,
        sortable:false,
        dataIndex:"difficulty" 
    }],
    initComponent:function(){
        this.callParent(arguments);
    }
})